<?php

namespace Core\Session;

use Core\Config;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class AdminAuthStorageFactory implements FactoryInterface
{

    /**
     * Create service
     *
     * @param ServiceLocatorInterface $serviceLocator
     * @return mixed
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $storage = new AuthStorage(Config::getAdminSessionNameSpace());
        $storage->setServiceLocator($serviceLocator);
//        $storage->setDbHandler();

        return $storage;
    }
}
